package com.nttuan.model.dao.service;

import com.nttuan.model.entity.User;

import java.util.List;

/**
 * Created by NT Tuan on 10/21/2014.
 */
public interface UserService {
    public boolean checkAndCreate(User user);
    public User getMe();
    public int newId();
    public List<User> users(boolean isActive);
    public List<User> users();
    public User user(int userId, boolean isActive);
    public User user(String email);
    public User user(int userId);
    public User crateOrUpdate(User user);
    public int isExit(String email);
    public boolean create(User user);
    public boolean update(User user);
    public boolean remove(int userId);
    public boolean active(int userId, boolean isActive);
    public boolean chanePassword(int userId, String password);


}
